import request from '@/utils/request'

export function CreateStage(key, data) {
  key = key.replace(key[0], key[0].toUpperCase())
  return request({
    url: `/api/workflow/Engine/FlowStage/${key}`,
    method: 'post',
    data
  })
}
export function UpdateStage(key, data) {
  CreateStage(key,data)
}
// 获取list
export function ListStage(id) {
  return request({
    url: `/api/workflow/Engine/FlowStage/${id}`,
    method: 'get'
  })
}
export function CreateStageLog( data) {
  return request({
    url: `/api/workflow/Engine/FlowStage/saveLog`,
    method: 'post',
    data
  })
}
export function ListStageLog(data) {
  return request({
    url: `/api/workflow/Engine/FlowStage/listLog`,
    method: 'get',
    data
  })
}